﻿using Game.Common.Visitor;
using Game.ExtensibleObjects;

namespace Game.Map.Internal
{
    public class GameMapWrapper
    {
        readonly IGameMap _GameMap;

        public GameMapWrapper(IGameMap gameMap)
        {
            _GameMap = gameMap;
        }
        public IGameMap GameMap
        {
            get { return _GameMap; }
        }

        public int Width
        {
            get { return _GameMap.Width; }
        }

        public int Height
        {
            get { return _GameMap.Height; }
        }

        public GameFieldCollection Fields
        {
            get { return _GameMap.Fields; }
        }

        public ViewCollection Views
        {
            get { return _GameMap.Views; }
        }

        public bool IsDirty
        {
            get { return _GameMap.IsDirty; }
            set { _GameMap.IsDirty = value; }
        }

        public GlobalItemCollection GlobalItems
        {
            get { return _GameMap.GlobalItems; }
        }

        public RuntimeExtensionCollection Extensions
        {
            get { return _GameMap.Extensions; }
        }

        public void Accept(IVisitor visitor)
        {
            _GameMap.Accept(visitor);
        }
        
    }
}
